﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Medianamik.Core.Configuration
{
    public class FilterUrlConfigElement : ConfigurationElement
    {
        [ConfigurationProperty(ConfigurationPropertyName.FILTER_URLS_ALLOWNOEXTENSION, DefaultValue = true)]
        public bool AllowNoExtension
        {
            get { return (bool)base[ConfigurationPropertyName.FILTER_URLS_ALLOWNOEXTENSION]; }
            set { base[ConfigurationPropertyName.FILTER_URLS_ALLOWNOEXTENSION] = value; }
        }

        [ConfigurationProperty(ConfigurationPropertyName.FILTER_URLS)]
        public FilterUrlsCollection FilterUrls
        {
            get
            {
                return base[ConfigurationPropertyName.FILTER_URLS] as FilterUrlsCollection;

            }
            set
            {
                base[ConfigurationPropertyName.FILTER_URLS] = value;
            }

        }

        [ConfigurationProperty(ConfigurationPropertyName.FILTER_URLS_FOR_REDIRECT)]
        public FilterUrlsCollection FilterUrlsForRedirect
        {
            get
            {
                return base[ConfigurationPropertyName.FILTER_URLS_FOR_REDIRECT] as FilterUrlsCollection;

            }
            set
            {
                base[ConfigurationPropertyName.FILTER_URLS_FOR_REDIRECT] = value;
            }

        }

        [ConfigurationProperty(ConfigurationPropertyName.FILTER_URLS_FOR_ERROR)]
        public FilterUrlsCollection FilterUrlsForError
        {
            get
            {
                return base[ConfigurationPropertyName.FILTER_URLS_FOR_ERROR] as FilterUrlsCollection;

            }
            set
            {
                base[ConfigurationPropertyName.FILTER_URLS_FOR_ERROR] = value;
            }

        }
    }
}
